
#ifndef __INCLUDE_LOD_H__
#define __INCLUDE_LOD_H__

//LOG DEFINED
#define DEMO_DBG_LEVEL_INFO    0x01
#define DEMO_DBG_LEVEL_WARNING 0x02
#define DEMO_DBG_LEVEL_ERROR   0x03

#define DEMO_DBG_LEVEL_CONFIG  DEMO_DBG_LEVEL_INFO

#if 1
#define LOGD(...) do { \
                       if (DEMO_DBG_LEVEL_CONFIG <= DEMO_DBG_LEVEL_INFO) { \
                          printf(__VA_ARGS__); \
                       } \
                  } while(0)

#define LOGW(...) do { \
                       if (DEMO_DBG_LEVEL_CONFIG <= DEMO_DBG_LEVEL_WARNING) { \
                           printf(__VA_ARGS__); \
                       } \
                  } while(0)

#define LOGE(...) do { \
                       if (DEMO_DBG_LEVEL_CONFIG <= DEMO_DBG_LEVEL_ERROR) { \
                           printf(__VA_ARGS__); \
                       } \
                  } while(0)

#else
#define LOGD(...)
#define LOGW(...)
#define LOGE(...)
#endif

#endif
